package com.qf.fmall.utils;


import java.util.Base64;

/**
 * @author 王权富贵
 */
public class Base64Utils {
    public static String encode(String msg) {

        return Base64.getEncoder().encodeToString(msg.getBytes());
    }
    public static  String decode(String msg){
        return new String(Base64.getDecoder().decode(msg));
    }
}
